package com.rdk.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by 胡彪  on 2014/7/2.
 */
public interface BaseDao<T> {
	void save(T t);
	void update(T t);
	void delete(Long id);
	T load(Long id);
	T load(String id);
	T load(Map<String,Object> maps);
	List<T> loadAll(Map<String,Object> maps);
	Integer queryPageCount(Map<String,Object> maps);
	List<T> queryPage(Map<String,Object> maps);
    void delete (String id);
    
    int deleteByPrimaryKey(String id);
    int deleteKeywordByRid(String rule_id);
    int deleteFodderByRid(String rule_id);
    List<Map<String, Object>> selectRuleById(String id);
    Map<String, Object> findKeywordById(String id);
    List<Map<String, Object>> selectRuleByType(Map<String, String> map);

    int insert(T t);
    int insertSelective(T t);
    T selectByPrimaryKey(String id);
    int updateByPrimaryKeySelective(T t);
    int updateByPrimaryKey(T t);
    

}
